<script>
    // #ifdef APP-PLUS
    // const jyJPush = uni.requireNativePlugin('JY-JPush');
    // #endif
    let notification
    export default {
        globalData: {},
        onLaunch: function() {
            let that = this;
            uni.getStorage({
                key: 'me',
                success: function(res) {
                    console.log(res)
                    that.globalData = res.data;
                }
            });

            // #ifdef APP
            // if (jyJPush) {
            //     if (uni.getSystemInfoSync().platform == 'android') { //极光初始化
            //         jyJPush.android_init(res => {})
            //     }
            //     //  监听成功后，若点击推送消息，会触发result；数据格式保持极光返回的安卓/iOS数据一致
            //     jyJPush.addJYJPushReceiveOpenNotificationListener(result => {
            //         let res = JSON.parse(result.notificationExtras)
            //     });
            // }
            // #endif
        },
        onShow: function() {
            // #ifdef APP
            // if (uni.getSystemInfoSync().platform == 'ios') { //极光初始化
            //     plus.runtime.setBadgeNumber(0)
            //     jyJPush.resetJYJPushBadge(result => {

            //     });
            // }
            // #endif
        },
        onHide: function() {
            uni.setStorage({
                key: 'me',
                data: this.globalData
            });
        }
    }
</script>

<style lang="scss">
	
	@font-face {
		font-family: 'uicon-iconfont';
		src: url('./static/css/font_2225171_8kdcwk4po24.ttf')format('truetype')
	}
	
	
    page {
        background-color: #F8F8F8;
        color: #333333 !important;
    }

    @import "uview-ui/index.scss";
    @import "/static/css/base.scss";
    @import "/static/css/index.scss";
</style>
